/**
 * author:龚佳新  
 * date:2013-08-12
 * 现金流量模型 方法全部抽取 为目前最精简模式
 */
Cnbi.model.Cash_Flow= function(params) {
   Cnbi.model.BaseSliderAndProgress.call(this,params); 
   var scope = this,domArray = params["domArray"];
   this.initPage=function(){
	      if(!scope.flag){//alert("子类的initPage");
	      		CnbiSoft.setCurrentRenderer("JavaScript");
	    	}

	   setFormula(false);
	   scope.setSliderValue(params.slider_array, scope.datas, "input");
	   scope.setProgressValue(params.progress_array,scope.datas, "span");
	   this.initChart(true);
	     	
    }
    
    this.initChart=function(action){   	  
    	  }    	        	           
    
    this.updataInputAfter=function(id ,value,datas ){		
		setFormula(true); 
	};
	
	function setFormula(action) {
			   	      
	}
 
   	scope.init();
}
Ext.onReady(function(){
	var slider_array=module["sliderItemScode"].split(",");
	var params ={itemIndex:module["queryItemScode"],showDim:'item',povitDim:'item',queryFact:'B',company:'EVA1',type:"cash_flow",year :qj.year,month :qj.month,unit :qj.unit};
    var toolsMap = module["toolsMap"];
    var bean =  new Cnbi.model.Cash_Flow({
    	id:module["id"],
		slider_array:slider_array,
		params:params,
		progress_array:[
		    toolsMap["jyhd"]["scode"],
		    toolsMap["tzhd"]["scode"],
		    toolsMap["czhd"]["scode"], 
		    toolsMap["xjjx"]["scode"]],
		updateInput:'input',
		pro:{width:"100%"},
		sli:{width:"100%"},
		companyName:company["text"],		
		module:module
	 }); 	 	
});